# 第2题解答
import math

# 2.1 默认参数求正弦值
def get_sine(angle=30):
    return math.sin(math.radians(angle))

# 2.2 关键字参数求和
def sum_sequence(*, numbers):
    return sum(numbers)

# 2.3 lambda表达式求立方和
cube_sum = lambda a, b: a**3 + b**3

print(f'sin(30°) = {get_sine()}')
print(f'sin(90°) = {get_sine(90)}')
print(f'sum(1-5) = {sum_sequence(numbers=[1,2,3,4,5])}')
print(f'2与3立方和 ={cube_sum(2, 3)}')